//
//  PerformBatchCell.m
//  TEXT
//
//  Created by mac on 2025/1/4.
//  Copyright © 2025 刘博. All rights reserved.
//

#import "PerformBatchCell.h"

@interface PerformBatchCell ()

@property (nonatomic, strong) UILabel *titleLabel;

@end

@implementation PerformBatchCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self.contentView addSubview:self.titleLabel];
    }
    return self;
}

- (void)updateWithText:(NSString *)title
{
    self.titleLabel.text = title;
}

#pragma mark - lazy load

- (UILabel *)titleLabel
{
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 100, 40)];
        _titleLabel.textColor = [UIColor greenColor];
    }
    return _titleLabel;
}

@end
